<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>xrect</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>xrect</b> -  draw a rectangle</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>xrect(x,y,w,h)  </tt>
      </dd>
      <dd>
        <tt>xrect(rect) // rect =[x,y,w,h]  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>x,y,w,h</b>
        </tt>: four real values defining the rectangle.</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>xrect</b>
      </tt> draws a rectangle defined by <tt>
        <b>[x,y,w,h]</b>
      </tt> 
    (upper-left point, width, height) using the current scale and style.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
xset("color",5)
xrect(-1,1,2,2)
xset("default")
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="xfrect.htm">
        <tt>
          <b>xfrect</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="xrects.htm">
        <tt>
          <b>xrects</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p>J.Ph.C.  </p>
  </body>
</html>
